Add MediaPack with Registration
The Add MediaPack with Registration script adds a MediaPack device with registration to an existing Teams Direct Routing Customer, and is shown below:
Copy
### Script Version 1.2 ###
# Adding MediaPack with registration to existing Customer
# Id: 5461230
#
# Customer variables:
# MP-username
# MP-password
# MP-IpAddress
# MP-MediaSecurity_Secure-Unsecure
# OrigCustomer
configure network
access-list new
source-ip "{{CustomVar.MP-IpAddress}}"
prefixLen 32
description "{{CustomerId}}-c"
use-specific-interface enable
network-interface-name "eth1"
activate
exit
exit
configure voip
ip-group upsert name "{{CustomerId}}-c"
name "{{CustomerId}}-c"
type user
srd-name "DefaultSRD"
classify-by-proxy-set disable
ip-profile-name "{{CustomVar.MP-MediaSecurity_Secure-Unsecure}}"
authentication-mode sbc-as-server
authentication-method-list "REGISTER"
username-as-server "{{CustomVar.MP-username}}"
password-as-server "{{CustomVar.MP-password}}"
call-setup-rules-set-id 19
tags "MediaPack={{SBC.OnlinePstnGateway}}"
activate
exit
{{#if SBC.FlagCarrierRegistration}}
sip-definition account new
account-name "{{CustomerId}}"
served-ip-group-name "{{CustomerId}}-c"
serving-ip-group-name "{{CustomVar.OrigCustomer}}-c"
user-name "{{SBC.CarrierUserName}}"
password "{{SBC.CarrierPassword}}"
host-name "{{SBC.CarrierHostName}}"
contact-user "{{SBC.CarrierMainLine}}"
register reg
application-type sbc
activate
exit
{{/if }}
do write